#ifndef STATEMENTLIST_H
#define STATEMENTLIST_H

#include "Node.h"
#include <list>

class StatementList : public Node
{
	public:
		StatementList(bool jason_root): amIRoot(jason_root) {}
		~StatementList();
		void addStatement(Node * statement);
		const std::list<Node*> & getStatementList() const;
		void accept(Visitor & v);
		bool AmIRoot() { return amIRoot; }
	private:
		std::list<Node*> statements;
		bool amIRoot;
};

#endif

